<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="注册系统数据库">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="SAP_HANA_0020.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="SAP_HANA_0020-1">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>注册系统数据库</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="SAP_HANA_0020-1"></a><a name="SAP_HANA_0020-1"></a>

<h1 class="topictitle1">注册系统数据库</h1>
<div><p>对SAP HANA数据库所包含的系统数据库进行备份前，需要将该系统数据库注册至<span id="SAP_HANA_0020-1__sap_hana_0012-1_text1160184071317">OceanProtect</span>。</p>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="SAP_HANA_0020-1__zh-cn_topic_0000002199964685_uicontrol5648197104718">“<span id="SAP_HANA_0020-1__zh-cn_topic_0000002199964685_text264897164717">保护</span> &gt; <span id="SAP_HANA_0020-1__zh-cn_topic_0000002199964685_text1364812716472">应用</span> &gt; <span id="SAP_HANA_0020-1__zh-cn_topic_0000002199964685_text1079695192219">SAP HANA</span>”</span>。</span></li><li id="SAP_HANA_0020-1__li1353820311716"><a name="SAP_HANA_0020-1__li1353820311716"></a><a name="li1353820311716"></a><span>注册SAP HANA实例。</span><p><div class="p" id="SAP_HANA_0020-1__p24601322103614">在<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol12356115132219">“实例”</span>页签，单击<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol184941797229">“注册”</span>。SAP HANA实例注册信息相关参数说明，如<a href="#SAP_HANA_0020-1__table115061832132613">表1</a>所示。
<div class="tablenoborder"><a name="SAP_HANA_0020-1__table115061832132613"></a><a name="table115061832132613"></a><table cellpadding="4" cellspacing="0" summary="" id="SAP_HANA_0020-1__table115061832132613" frame="border" border="1" rules="all"><caption><b>表1 </b>SAP HANA实例注册信息</caption><colgroup><col style="width:28.27%"><col style="width:71.73%"></colgroup><thead align="left"><tr id="SAP_HANA_0020-1__row10505153232611"><th align="left" class="cellrowborder" valign="top" width="28.27%" id="mcps1.3.2.2.2.2.1.4.2.3.1.1"><p id="SAP_HANA_0020-1__p250423217269">参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="71.73%" id="mcps1.3.2.2.2.2.1.4.2.3.1.2"><p id="SAP_HANA_0020-1__p850563202610">说明</p>
</th>
</tr>
</thead>
<tbody><tr id="SAP_HANA_0020-1__row18505133232615"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p16505143218269">名称</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p155051932132618">用户自行设置的实例名称。</p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row16462122252810"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p3462152222810">实例ID</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p3462422182815">安装SAP HANA数据库时设置的ID，实例ID查询方式请参考<a href="SAP_HANA_0010.html">备份前准备</a>。</p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row185055325261"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p4505932132614">主机</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p01247308446">SAP HANA数据库所在的主机。</p>
<p id="SAP_HANA_0020-1__p68001055193314">如果数据库是集群部署，请选择SAP HANA数据库所在的所有主机。</p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row18506143220267"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p19506143210263">认证模式</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p25061832172611">选择<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol2050633212618">“数据库认证”</span>或<span style="color:#1A1A1A;">“Hdbuserstore”。</span></p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row085015131081"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p178508137816">Hdbuserstore KEY</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><div class="p" id="SAP_HANA_0020-1__p125591316307">认证模式选择<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol15236245308">“Hdbuserstore”</span>时，请在SAP HANA数据库所在主机上设置Hdbuserstore KEY参数。如果SAP HANA数据库是集群部署，请在SAP HANA数据库所在的所有主机上设置Hdbuserstore KEY参数，可通过以下方式设置：<ol type="a" id="SAP_HANA_0020-1__ol556191216136"><li id="SAP_HANA_0020-1__li956131217138">使用PuTTY工具，以root用户依次登录SAP HANA数据库所在的所有主机。</li><li id="SAP_HANA_0020-1__li650761992914">执行以下命令，切换SAP系统用户<em id="SAP_HANA_0020-1__i192442031718">“&lt;sid&gt;</em>adm<em id="SAP_HANA_0020-1__i129241820111718">”</em>，以用户名<strong id="SAP_HANA_0020-1__b1866704594213">s00adm</strong>为例。<pre class="screen" id="SAP_HANA_0020-1__screen556111127132">su - <em id="SAP_HANA_0020-1__i5967165483218">s00adm</em></pre>
</li><li id="SAP_HANA_0020-1__li456101219137">执行以下命令设置Hdbuserstore KEY参数。<pre class="screen" id="SAP_HANA_0020-1__screen656116121137">hdbuserstore set <em id="SAP_HANA_0020-1__i256141216131">S00SAPDB</em> "<em id="SAP_HANA_0020-1__i1856115128131">hana1</em>:30013" <em id="SAP_HANA_0020-1__i1653513255321">SYSTEM</em> <em id="SAP_HANA_0020-1__i1256111121131">1234</em></pre>
<p id="SAP_HANA_0020-1__p05619121136">其中S00SAPDB是用户设置的KEY参数，hana1是主机名，30013是安装SAP HANA数据库时所设置的端口号，SYSTEM是系统数据库用户名，1234是系统数据库密码，请根据实际替换。</p>
</li><li id="SAP_HANA_0020-1__li756171241312">执行以下命令查看Hdbuserstore KEY参数。<pre class="screen" id="SAP_HANA_0020-1__screen45611512171320">hdbuserstore list</pre>
<p id="SAP_HANA_0020-1__p12561201211135">回显如下所示，KEY所在行是Hdbuserstore KEY参数。</p>
<p id="SAP_HANA_0020-1__p17561512171316"><span><img id="SAP_HANA_0020-1__image3561171216130" src="zh-cn_image_0000002200069537.png"></span></p>
</li></ol>
</div>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row1449445314312"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p650616328264">系统数据库用户名</p>
</td>
<td class="cellrowborder" rowspan="3" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p10766143704517">认证模式选择<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol7754151012283">“数据库认证”</span>时，请输入：</p>
<ul id="SAP_HANA_0020-1__ul199910511455"><li id="SAP_HANA_0020-1__li39998518452">访问系统数据库的用户名与密码。</li><li id="SAP_HANA_0020-1__li8999951144514">安装SAP HANA数据库时所设置的端口号，默认端口号是30013。</li></ul>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row1335328156"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p1506103210269">系统数据库密码</p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row1450611321267"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p1153595733015">系统数据库端口</p>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row1650612322266"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p13506183211261">日志备份</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__li529065118203p0"><span style="color:#282B33;">功能开启后才能进行日志备份。</span></p>
<div class="note" id="SAP_HANA_0020-1__note739920428506"><span class="notetitle"> 说明： </span><div class="notebody"><p id="SAP_HANA_0020-1__p651117352517">开启日志备份功能后，才能进行增量或差异备份。</p>
</div></div>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row136961311114314"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p37411915808">定期日志备份时间间隔</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p499131884215">设置日志备份的时间间隔<span style="color:#282B33;">。</span></p>
<div class="note" id="SAP_HANA_0020-1__note7579154174818"><span class="notetitle"> 说明： </span><div class="notebody"><p id="SAP_HANA_0020-1__p165791854104819">建议该时间间隔的取值在<a href="SAP_HANA_0024.html#SAP_HANA_0024__zh-cn_topic_0000002004293194_zh-cn_topic_0000002004090332_zh-cn_topic_0000001839268545_table2663151516335">表1</a>中设置的日志备份时间间隔的50%~100%之间。例如当备份策略中设置的日志备份时间间隔为60分钟，则此参数建议配置的时间间隔取值范围为30分钟~60分钟。</p>
</div></div>
</td>
</tr>
<tr id="SAP_HANA_0020-1__row16443839104316"><td class="cellrowborder" valign="top" width="28.27%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.1 "><p id="SAP_HANA_0020-1__p166715438014">日志备份路径</p>
</td>
<td class="cellrowborder" valign="top" width="71.73%" headers="mcps1.3.2.2.2.2.1.4.2.3.1.2 "><p id="SAP_HANA_0020-1__p174431539154314">设置数据日志备份生成的路径。</p>
<div class="note" id="SAP_HANA_0020-1__note17711185954713"><span class="notetitle"> 说明： </span><div class="notebody"><ul id="SAP_HANA_0020-1__ul6999123911911"><li id="SAP_HANA_0020-1__li30194071916">请确保日志备份目录可用空间大于所有日志备份副本将占用的空间，并且确保SAP HANA日志备份路径权限至少为755。</li><li id="SAP_HANA_0020-1__li1283844621912">如果生产环境已经设置了日志备份路径，则这里设置之后会改变原有日志备份路径。</li><li id="SAP_HANA_0020-1__li148317354229">在执行备份任务后，设置的日志备份路径才会生效。</li><li id="SAP_HANA_0020-1__li7990174094217">日志备份目录必须为共享目录。共享目录的查询方式如下：<ol type="a" id="SAP_HANA_0020-1__ol191671738121118"><li id="SAP_HANA_0020-1__sap_hana_0015_li51671838151120">使用PuTTY工具，以root用户登录SAP HANA数据库所在主机。</li><li id="SAP_HANA_0020-1__sap_hana_0015_li1411414546215"><a name="SAP_HANA_0020-1__sap_hana_0015_li1411414546215"></a><a name="sap_hana_0015_li1411414546215"></a>执行以下命令，切换到SAP系统用户。<pre class="screen" id="SAP_HANA_0020-1__sap_hana_0015_screen148394565408">su - <em id="SAP_HANA_0020-1__sap_hana_0015_i462684119271">&lt;sid&gt;</em>adm</pre>
<p id="SAP_HANA_0020-1__sap_hana_0015_p10839195616407">其中，“sid”为SAP系统ID。例如：</p>
<pre class="screen" id="SAP_HANA_0020-1__sap_hana_0015_screen1839115644015">hana1:<font style="font-size:8pt" Face="Courier New" >~</font> # su - s00adm
s00adm@hana1:/usr/sap/S00/HDB00&gt; </pre>
<p id="SAP_HANA_0020-1__sap_hana_0015_p195411748132413">回显样例中，“/usr/sap/S00/HDB00” 即为SAP系统用户目录的软链接。</p>
</li><li id="SAP_HANA_0020-1__sap_hana_0015_li1216811387113">执行以下命令，查看SAP系统用户目录的真实指向、获取SAP HANA的共享目录。<pre class="screen" id="SAP_HANA_0020-1__sap_hana_0015_screen7168123818112">ll <em id="SAP_HANA_0020-1__sap_hana_0015_i639144710283">usr_Directory</em> </pre>
<p id="SAP_HANA_0020-1__sap_hana_0015_p22102495165">其中，“usr_Directory”为<a href="#SAP_HANA_0020-1__sap_hana_0015_li1411414546215">2</a>获取的软链接相关路径。例如：</p>
<pre class="screen" id="SAP_HANA_0020-1__sap_hana_0015_screen124041114175">s00adm@hana1:/usr/sap/S00/HDB00&gt; ll /usr/sap/S00
total 4
lrwxrwxrwx 1 s00adm sapsys  27 Dec 11 09:41 HDB00 -&gt; /home/hana/shared/K00/HDB00
drwxr-x--- 1 s00adm sapsys  38 Dec 11 09:48 hdblcm_uploads
drwxr-xr-x 1 s00adm sapsys 338 Dec 11 09:44 home
drwxr-x--- 1 s00adm sapsys  32 Dec 11 09:39 SYS</pre>
<p id="SAP_HANA_0020-1__sap_hana_0015_p14534259172819">回显样例中，“shared”目录的上一级，“/home/hana”，即为SAP HANA的共享目录。</p>
</li></ol>
</li></ul>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</p></li><li id="SAP_HANA_0020-1__li218545118357"><span>单击<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol19654151103614">“确定”</span>。</span></li><li><span>注册系统数据库。</span><p><div class="p">在<span class="uicontrol">“数据库”</span>页签，单击<span class="uicontrol">“注册”</span>。系统数据库注册信息相关参数说明，如<a href="#SAP_HANA_0020-1__table1180165510331">表2</a>所示。
<div class="tablenoborder"><a name="SAP_HANA_0020-1__table1180165510331"></a><a name="table1180165510331"></a><table cellpadding="4" cellspacing="0" summary="" id="SAP_HANA_0020-1__table1180165510331" frame="border" border="1" rules="all"><caption><b>表2 </b>系统数据库注册信息</caption><colgroup><col style="width:25.6%"><col style="width:74.4%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25.6%" id="mcps1.3.2.2.4.2.1.4.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="74.4%" id="mcps1.3.2.2.4.2.1.4.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="25.6%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.1 "><p>类型</p>
</td>
<td class="cellrowborder" valign="top" width="74.4%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.2 "><p>选择<span class="uicontrol">“系统数据库”</span>。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="25.6%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.1 "><p>实例</p>
</td>
<td class="cellrowborder" valign="top" width="74.4%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.2 "><p>选择<a href="#SAP_HANA_0020-1__li1353820311716">2</a>中对应已注册的实例。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="25.6%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.1 "><p>名称</p>
</td>
<td class="cellrowborder" valign="top" width="74.4%" headers="mcps1.3.2.2.4.2.1.4.2.3.1.2 "><p>选择待保护的系统数据库的名称，查询方式请参考<a href="SAP_HANA_0010.html">备份前准备</a>。</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</p></li><li id="SAP_HANA_0020-1__li1675855012520"><span>单击<span class="uicontrol" id="SAP_HANA_0020-1__uicontrol769825912521">“确定”</span>。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="SAP_HANA_0020.html">步骤1：注册SAP HANA数据库（Backint备份方式）</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>